package org.mybatis.jpetstore.domain;

public class test {
	
	public int f(int i){
		if(i<=0){
			return 1;
		}else{
			return i*f(i-1);
		}
	}
	
	public static void main(String[] args) {
		test t = new test();
		int r = t.f(3);
		System.out.println(r);
	}

}
